# 1. 定义一个Person类，构建属性:姓名/年龄/性别/地址/电话/邮箱,构建行为:个人介绍/吃饭/唱歌,创建对象并且赋值和调用行为

class Person:
    def __init__(self, name1, age1, gender1, address1, phone1, email1 ):
        self.name = name1
        self.age = age1
        self.gender = gender1
        self.address = address1
        self.phone = phone1
        self.email= email1
    def print_attr(self):
        print(f'姓名:{self.name},年龄:{self.age},性别:{self.gender},地址:{self.address},电话:{self.phone},邮箱:{self.email}')
if1 = Person('石昊', 18, '男', '石村', 520502502502, 'dahuolong@502dapangzi')
if2 = Person('火灵儿', 18, '女', '桑树林', 520852852852, 'dazhuti@xionghaizi')
print(if1)
print(if2)
if1.print_attr()
if2.print_attr()

class dal:
    hobbies = '唱歌'
    time = '按时吃饭'
    def behavior(self):
        print(f'我的兴趣:{self.hobbies},我的习惯:{self.time}')
a1 = dal()
print(a1)
a1.behavior()


